From: Keir Fraser Date: Tue, 7 Apr 2009 09:57:11 +0000 (+0100) Subject: xentrace: Trace CR accesses in hvm emulator. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13988^2~22 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=104dbd4fd23e826babc7d99c84fad2224ee8e664;p=xen.git xentrace: Trace CR accesses in hvm emulator. Signed-off-by: George Dunlap --- diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index 6fbce84e90..2166e88a34 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #define HVMTRACE_IO_ASSIST_WRITE 0x200 @@ -749,6 +750,7 @@ static int hvmemul_read_cr( case 3: case 4: *val = current->arch.hvm_vcpu.guest_cr[reg]; + HVMTRACE_LONG_2D(CR_READ, reg, TRC_PAR_LONG(*val)); return X86EMUL_OKAY; default: break; @@ -762,6 +764,7 @@ static int hvmemul_write_cr( unsigned long val, struct x86_emulate_ctxt *ctxt) { + HVMTRACE_LONG_2D(CR_WRITE, reg, TRC_PAR_LONG(val)); switch ( reg ) { case 0: